#pragma once
#include "Control.h"
#include "Label.h"


class CControlHierarchy
{
public:
	CControlHierarchy(void);
	virtual ~CControlHierarchy(void);

	BOOL IsAttached(void) const {
		return m_pWndControl.get() != NULL;
	}

	BOOL AttachWindow(HWND, const Region* = NULL);
	CControl* AddControl(LPCTSTR szControl, LPCTSTR szName);
	void Refresh(const Region* = NULL);

	CEventHandlerMap& GetEventHandlerMap(void);

private:
	std::unique_ptr<CControl>	m_pWndControl;
};

